﻿#ifndef RECBOX_H
#define RECBOX_H

#include <QWidget>
#include <QJsonArray>

namespace Ui {
class RecBox;
}

class RecBox : public QWidget
{
    Q_OBJECT

public:
    explicit RecBox(QWidget *parent = nullptr);
    ~RecBox();

    void initRecBoxUi(QJsonArray data, int row);

private:
    void createRecBoxItem();

    void on_btUp_clicked();

    void on_btDown_clicked();
private:
    Ui::RecBox *ui;

    int row;
    int col;

    int currentIndex;//标记当前显示组
    int count;//图片总和
    QJsonArray imageList;
};

#endif // RECBOX_H
